//
//  M_Statistics.h
//  YunDongAdmin
//
//  Created by lqq on 2018/9/14.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "M_Base.h"

typedef NS_ENUM(NSInteger,StatisticsMemberType) {
    StatisticsMemberType_TodayPlan = 1,
    StatisticsMemberType_TodayRecord = 2,
    StatisticsMemberType_TodayAddMember = 3,
};


@interface M_Statistics : M_Base

@end


@interface M_GymOverview : M_Base
@property (nonatomic, copy) NSString *gymId;//健身房id
@property (nonatomic, assign) NSInteger memberCount;//;//会员数
@property (nonatomic, assign) NSInteger newCard;//新增课时
@property (nonatomic, copy) NSString *percent;//到店率(到店/排课)
@property (nonatomic, assign) NSInteger planCount;//排课会员数
@property (nonatomic, assign) NSInteger recordCount;//到店训练会员数
@property (nonatomic, assign) NSInteger remainCard;//剩余课时
@property (nonatomic, copy) NSString *statDate;//统计日期
@property (nonatomic, assign) NSInteger totalCard;//总课时
@property (nonatomic, assign) NSInteger totalMemberCount;//会员总计
@property (nonatomic, assign) NSInteger totalPlanCount;//排课总计
@property (nonatomic, assign) NSInteger totalRecordCount;//训练总计
@end



@protocol  M_StatCountDTO

@end


@interface M_StatMember : M_Base
@property (nonatomic, strong) NSMutableArray<M_StatCountDTO> *statList;//各健身房统计
@property (nonatomic, assign) NSInteger total;//累计总数
@end

@interface M_StatCountDTO :M_Base
@property (nonatomic, assign) NSInteger count;//数量
@property (nonatomic, copy) NSString *gymId;//健身房ID
@property (nonatomic, copy) NSString *gymName;//健身房名称
@property (nonatomic, assign) CGFloat ratio;//比例
@end


@interface M_StatisticsMember : M_Base
@property (nonatomic, copy) NSString *avatarUrl;//
@property (nonatomic, assign) NSInteger cardConsume;//以上课时
@property (nonatomic, assign) NSInteger cardCount;//剩余课时
@property (nonatomic, assign) NSInteger cardTotal;//总课时 ,
@property (nonatomic, copy) NSString *coachId;//教练ID ,
@property (nonatomic, copy) NSString *coachName;//教练名称 ,
@property (nonatomic, assign) long long createDate;//时间 ,
@property (nonatomic, copy) NSString *gymName;//教练门店
@property (nonatomic, copy) NSString *memberName;//会员名称 ,
@property (nonatomic, copy) NSString *timeStr;//时间字符串
@end








